home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Leonardo the Inventor
/
Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso
/
LEOWINMV
/
SHARED.DIR
/
03080_Script_PALETTE FIX
< prev
next >
Wrap
Text File
|
1996-04-01
|
911b
|
33 lines
-- -----------------------------------------------------------
-- Handler setUpFixPal opens the fixPalette xobject and
-- creates a new instance of it to fix palette flashes.
on setUpFixPal
global fixpal
if (the machineType = 256) then exit
openxlib "FixPaletteXObj"
set fixpal=FixPalette(mNew, the stageLeft, the stageTop, the stageRight, the stageTop)
end
-- -----------------------------------------------------------
-- Handler disposeFixPal closes the fixPalette xobject and
-- deletes the instance of it.
on disposeFixPal
global fixpal
if (the machineType = 256) then exit
if objectP(fixpal) then fixPal(mDispose)
closexlib "FixPaletteXObj"
end
-- -----------------------------------------------------------
-- Handler patchPal fixes palette flashes.
on patchpal
global fixpal
if (the machineType = 256) then exit
fixpal(mPatchIt)
end